<?php

namespace app\report\controller;

use app\common\controller\PCBase;
use app\BaseController;//测试专用
use app\report\logic\MonthlyPersonalLogic;
use think\facade\Db;
use Throwable;
use app\common\library\Upload;

class MonthlyPersonal extends PCBase
{


    public function initialize(): void
    {
        parent::initialize();
    }

    /**
     * index
     * @throws Throwable
     */
    public function index()
    {
        $params     = $this->request->post();
        $MonthlyPersonalLogic = new MonthlyPersonalLogic();
        $adminId = $this->getAdminId();
        $params['AdminId'] = $adminId;
        return $MonthlyPersonalLogic->index($params);
    }
    /**
     * index
     * @throws Throwable
     */
    public function PreparationWork()
    {
        $params     = $this->request->post();
        $MonthlyPersonalLogic = new MonthlyPersonalLogic();
        return $MonthlyPersonalLogic->PreparationWork($params);
    }
    /**
     * index
     * @throws Throwable
     */
    public function LogisticsBill()
    {
        $params     = $this->request->post();
        $MonthlyPersonalLogic = new MonthlyPersonalLogic();
        return $MonthlyPersonalLogic->LogisticsBill($params);
    }
    /**
     * index
     * @throws Throwable
     */
    public function ProcurementBill()
    {
        $params     = $this->request->post();
        $MonthlyPersonalLogic = new MonthlyPersonalLogic();
        return $MonthlyPersonalLogic->ProcurementBill($params);
    }
    /**
     * 争议成本
     * @throws Throwable
     */
    public function DisputeCost()
    {
        $params     = $this->request->post();
        $MonthlyPersonalLogic = new MonthlyPersonalLogic();
        return $MonthlyPersonalLogic->DisputeCost($params);
    }
    /**
     * 匹配标签
     * @throws Throwable
     */
    public function OrderTagMatching()
    {
        $params     = $this->request->post();
        $MonthlyPersonalLogic = new MonthlyPersonalLogic();
        return $MonthlyPersonalLogic->OrderTagMatching($params);
    }

    /**
     * export
     * @throws Throwable
     */
    public function export()
    {
        $params     = $this->request->post();
        if(empty($params)){
            $params     = $this->request->get();
        }
        $MonthlyPersonalLogic = new MonthlyPersonalLogic();
        return $MonthlyPersonalLogic->export($params);
    }

    /**
     * export
     * @throws Throwable
     */
    public function exportinfo()
    {
        $params     = $this->request->post();
        if(empty($params)){
            $params     = $this->request->get();
        }
        $MonthlyPersonalLogic = new MonthlyPersonalLogic();
        return $MonthlyPersonalLogic->exportinfo($params);
    }

/**
     * export
     * @throws Throwable
     */
    public function exportinfoSheCurve()
    {
        $params     = $this->request->post();
        if(empty($params)){
            $params     = $this->request->get();
        }
        $MonthlyPersonalLogic = new MonthlyPersonalLogic();
        return $MonthlyPersonalLogic->exportinfoSheCurve($params);
    }
    /**
     * export
     * @throws Throwable
     */
    public function exportinfowoobilly()
    {
        $params     = $this->request->post();
        if(empty($params)){
            $params     = $this->request->get();
        }
        $MonthlyPersonalLogic = new MonthlyPersonalLogic();
        return $MonthlyPersonalLogic->exportinfowoobilly($params);
    }

}
